package cn.ai.boot.config3;

import cn.ai.boot.config3.base.AbstractBaseEatService;
import cn.ai.boot.config3.base.IBaseEatService;

/**
 * @author jie.zhao@dms365.com
 * @Date 2025/9/2 16:20
 */
public class MainTest {
    public static void main(String[] args) {
        // 普通人吃东西
        System.out.println("普通人吃东西");
        AbstractBaseEatService abstractBaseEatService = new AbstractBaseEatService();
        abstractBaseEatService.eatRice();
        abstractBaseEatService.eatVegetables();

        // 中国人吃东西
        System.out.println("中国人吃东西");
        IBaseEatService chainEatService = new ChainEatServiceImpl();
        chainEatService.eatRice();
        chainEatService.eatVegetables();

        // 日本人吃东西
        System.out.println("日本人吃东西");
        IBaseEatService japanEatService = new JapanEatServiceImpl();
        japanEatService.eatRice();
        japanEatService.eatVegetables();
        // 狗吃东西
        System.out.println("狗吃东西");
        DogEatServiceImpl dogEatService = new DogEatServiceImpl();
        dogEatService.eatRice();
        dogEatService.eatVegetables();
        dogEatService.eatBone();
        // 鱼吃东西
    }
}
